package com.baizhi.cmfz.dao;

import com.baizhi.cmfz.entity.Consumer;
import com.baizhi.cmfz.entity.UserDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;

import java.util.List;
import java.util.Map;

public interface ConsumerDao {

    public List<Consumer> selectByPageConsumer(@Param("offset") Integer offset, @Param("limit") Integer limit,@Param("name")String name);

    public  int selectTotalCountConsumer(@Param("name") String name);

    int insertConsumer(Consumer consumer);

    int updateConsumer(Consumer consumer);

    Consumer selectOneConsumer(Integer id);

    int deleteConsumer(Integer id);

    int updateFreeze(Integer id);

    public  int insert(List<Consumer> consumers);
    List<Map> selectAll();

    List<Map> selectAllState();

    public  List<UserDTO>selectNumber();

     int  selectByDayCount(@Param("min") int min,@Param("max") int max);
}
